package com.zs.studentmanager.exception;

import com.zs.studentmanager.common.ResponseCodeEnum;
import lombok.Getter;

/**
 * @author: 周小白
 * @date: 2023-11-25 13:43
 **/
@Getter
public class CustomException extends RuntimeException{

    public CustomException(String message) {
        super(message);
    }


    public CustomException(ResponseCodeEnum responseCodeEnum) {
        super(responseCodeEnum.getMessage());
    }

}
